package kino.common;

public class KinoConstant {
    public static final String NIL = "$-1\r\n";
    public static final String NOT_FIND_COMMAND = "-没找到该命令\r\n";
    public static final String OK = "+OK\r\n";
    public static final String ARGC_ERR = "-该命令的参数个数不正确\r\n";
    public static final String EXT_ARGC_ERR = "-该命令需要重写扩展参数解析方法\r\n";

    public static final String KEY_TYPE_ERR = "-键值对类型不匹配\r\n";
    public static final String KEY_DATABASE_NO_ERR = "-数据库编号不正确\r\n";
    public static final String KEY_EXPIRE_PARAM_ERR = "-过期时间必须为正整数\r\n";
    public static final String KEY_NOT_EXISTS = "-该键不存在\r\n";

    public static final String crlf = "\r\n";
    public static final String ok = "+OK\r\n";
    public static final String err = "-ERR\r\n";
    public static final String emptybulk = "$0\r\n\r\n";
    public static final String czero = ":0\r\n";
    public static final String cone = ":1\r\n";
    public static final String cnegone = ":-1\r\n";
    public static final String ttlNotEXISTS = ":-2\r\n";
    public static final String nullbulk = "$-1\r\n";
    public static final String nullmultibulk = "*-1\r\n";
    public static final String emptymultibulk = "*0\r\n";
    public static final String pong = "+PONG\r\n";
    public static final String queued = "+QUEUED\r\n";
    public static final String emptyscan = "*2\r\n$1\r\n0\r\n*0\r\n";
    public static final String wrongtypeerr =
            "-WRONGTYPE Operation against a key holding the wrong kind of value\r\n";
    public static final String nokeyerr =
            "-ERR no such key\r\n";
    public static final String cursor =
            "-invalid cursor\r\n";
    public static final String syntaxerr =
            "-ERR syntax error\r\n";
    public static final String sameobjecterr =
            "-ERR source and destination objects are the same\r\n";
    public static final String outofrangeerr =
            "-ERR index out of range\r\n";
    public static final String noscripterr =
            "-NOSCRIPT No matching script. Please use EVAL.\r\n";
    public static final String loadingerr =
            "-LOADING Redis is loading the dataset in memory\r\n";
    public static final String slowscripterr =
            "-BUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE.\r\n";
    public static final String masterdownerr =
            "-MASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to 'no'.\r\n";
    public static final String bgsaveerr =
            "-MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.\r\n";
    public static final String roslaveerr =
            "-READONLY You can't write against a read only replica.\r\n";
    public static final String noautherr =
            "-NOAUTH Authentication required.\r\n";
    public static final String oomerr =
            "-OOM command not allowed when used memory > 'maxmemory'.\r\n";
    public static final String execaborterr =
            "-EXECABORT Transaction discarded because of previous errors.\r\n";
    public static final String noreplicaserr =
            "-NOREPLICAS Not enough good replicas to write.\r\n";
    public static final String busykeyerr =
            "-BUSYKEY Target key name already exists.\r\n";
    public static final String space = " ";
    public static final String colon = ":";
    public static final String plus = "+";
}
